public class Demo3 {

}
class point {

    public point(){
        System.out.println();
    }
    void set(){
    }
}
class PointFactory{
    public static point PointFactoryXY(int x,int y){
        point p = new point();
        p.set();
        return p;
    }
    public static point PointFactory(int cos,int length){
        point p = new point();
        p.set();
        return p;
    }
}

